package com.wl.mall.api.page.feign;

import com.wl.mall.util.common.entity.RespResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(value = "mall-web-page")
public interface SeckillPageFeign {

    /***
     * 秒杀详情页生成
     * @param id
     * @return
     */
    @GetMapping(value = "/page/seckill/goods/{id}")
    RespResult page(@PathVariable(value = "id")String id) throws Exception;


    @DeleteMapping("/{id}")
    RespResult deleByAct(@PathVariable("id") String act);
}